<?php
// test_user数据表代码生成配置文件
return
    [
        'menuPid'=>44,
        'table'=>'rewards',// 基于此表构建 代码
        'prefix'=>'primary',
        'orderByDesc'=>'id',
        'modelName'=>'Rewards',//模块名
        'modelShowName'=>'奖励',
        //字段处理
        "fields"=>
            [
                ['field'=>'title','type'=>'varchar','title'=>'邮件标题'],
                ['field'=>'content','type'=>'varchar','title'=>'邮件正文'],
                ['field'=>'server_id','type'=>'int','title'=>'服务器ID'],
                ['field'=>'customer_id','type'=>'int','title'=>'网站账号ID'],
                ['field'=>'yuanbao','type'=>'int','title'=>'元宝'],
                ['field'=>'hxb','type'=>'int','title'=>'华夏币'],
                ['field'=>'yinyuan','type'=>'int','title'=>'银元'],
                ['field'=>'equips','type'=>'text','title'=>'奖励道具'],
                ['field'=>'begin_time','type'=>'datetime','title'=>'开始时间'],
                ['field'=>'end_time','type'=>'datetime','title'=>'结束时间'],
                ['field'=>'status','type'=>'radio','title'=>'结束时间',"values"=>[['value'=>0,'title'=>'未领取'],['value'=>1,'title'=>'已领取']],'default'=>0],
                ['field'=>'sort','type'=>'int','title'=>'序号'],
            ],
        'functions'=> //功能
            [
                ['name'=>'model','path'=>'app/Models'],
                ['name'=>'dto','path'=>'app/DTOS/Admin','dtoList'=>[ 'searchDTO']],
                ['name'=>'service','path'=>'app/Services','methods'=>['paginate','deleteById','deleteByIds','getById']],
                ['name'=>'controller','path'=>'app/Http/Controllers/Admin','methods'=>['import', 'paginate','delete','detail']],
                ['name'=>'layuiAdminPage',
                    'output'=>'/code/xm2-admin/page/rewards',
                    'pages'=>
                        [
                            ['page'=>'form','functions'=>[]],
                            ['page'=>'index','functions'=>['import', 'delete','batchDelete']],
                        ]
                ],
                ['name'=>'route'],
                ['name'=>'menu','functions'=>['delete','paginate','detail']],
            ],
    ];

// controller 中包应该含导入功能 , 默认xlsx导入,后期应该支持 csv , xls 导入
